package com.isoftstone.demo.flexigrid.entity;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;

/**
 * flexigridDemo的实体
 * <br>
 *
 * @author WenHaoJiong
 * @version [版本号, 2017年11月29日 11:01]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
@Entity
@Table(name = "SM_FLEXIGRID_DEMO")
@DynamicInsert
@DynamicUpdate
public class FlexigridDemo
{
    
    /**
     * id : 1001
     * attribute1 : test_1_1
     * attribute2 : test_1_2
     * attribute3 : test_1_3
     * attribute4 : test_1_3
     * status : 1
     */
    
    @Id
    @GeneratedValue
    @Column
    private Integer id;
    
    @Column
    private String attribute1;
    
    @Column
    private String attribute2;
    
    @Column
    private String attribute3;
    
    @Column
    private String attribute4;
    
    @Column
    private int status;
    
    public Integer getId()
    {
        return id;
    }
    
    public void setId(Integer id)
    {
        this.id = id;
    }
    
    public String getAttribute1()
    {
        return attribute1;
    }
    
    public void setAttribute1(String attribute1)
    {
        this.attribute1 = attribute1;
    }
    
    public String getAttribute2()
    {
        return attribute2;
    }
    
    public void setAttribute2(String attribute2)
    {
        this.attribute2 = attribute2;
    }
    
    public String getAttribute3()
    {
        return attribute3;
    }
    
    public void setAttribute3(String attribute3)
    {
        this.attribute3 = attribute3;
    }
    
    public String getAttribute4()
    {
        return attribute4;
    }
    
    public void setAttribute4(String attribute4)
    {
        this.attribute4 = attribute4;
    }
    
    public int getStatus()
    {
        return status;
    }
    
    public void setStatus(int status)
    {
        this.status = status;
    }
}
